# -*- coding: utf-8 -*-
# @Author  : longbhu
# @Time    : 2025/3/21 15:16
# @Function: 第四步：按照shp裁剪中国eco图
from calc_v1.tif_tools import tif_mask_by_shapefile

# 测试
# tif_path = r'F:\test_files\插值验证程序的输入数据\fortran插值\et\et_2023.tif'
# shapefile_folder = r'E:\shp\shangluo_shp'
# output_folder = r'F:\test_files\插值验证程序的输入数据\fortran插值\et' # 可选


tif_path = r'H:\land30m2010\制作成新国标标准\merged\china_merged.tif'
shapefile_folder = r'E:\shp\2025购买边界shp2021\省级'
"""
shapefile_folder = r'E:\shp\2025购买边界shp2021\省级'     city_name = 'name'
shapefile_folder = r'E:\shp\shangluo_shp'            city_name = 'Name'
"""

output_folder = r'H:\land30m2010\制作成新国标标准\maskByShp' # 可选


tif_mask_by_shapefile(tif_path, shapefile_folder,output_folder,city_name = 'xzqdm') # xiang_name